    <div class="formbody">

        <div class="formtitle">
            <span>基本信息</span>
        </div>
        <form action="" method="post" accept-charset="utf-8">
            <ul class="forminfo">
                <li>
                    <label>标题</label>
                    <input type="text" class="dfinput" name="title" value="<?php echo empty($detail['title']) ? '':$detail['title']; ?>" placeholder="" /> <i>标题不能超过20个字符</i>
                </li>
                <li>
                    <label>链接</label>
                    <input type="text" class="dfinput" name="link" value="<?php echo empty($detail['link']) ? '':$detail['link']; ?>" placeholder="" /> <i>标题不能超过20个字符</i>
                </li>
                <li>
                    <label>排序</label>
                    <input type="text" name="sort" value="<?php echo empty($detail['sort']) ? 0 :  $detail['sort']   ?>" class="dfinput">
                    <i>从小到大排序</i>
                </li>
                <li>
                    <label>&nbsp;</label>
                    <input type="checkbox" name="isVisible" value="1" <?php echo ( isset($detail) && empty($detail['isVisible']) ) ? '' : 'checked'  ?>>
                    <i>是否显示在左边菜单栏</i>
                </li>
                <li>
                    <label>上级</label>
                    <select name="parentID" class="select" style="width: 150px;">
                        <option value="0">根目录</option>
                        <?php $selectedID = empty($detail['parentID']) ? 0 : $detail['parentID'];   ?>
                        <?php foreach ($list as $k => $v): ?>
                            <option value="<?php echo $v['id'] ?>" <?php echo $v['id']==$selectedID ? 'selected':''; ?>><?php echo $v['html'].$v['title']; ?></option>
                        <?php endforeach; ?>
                    </select>
                </li>

                <li>
                    <label>&nbsp;</label>
                    <input name="" type="submit" class="btn" value="确认保存"/>
                </li>
            </ul>
        </form>

    </div>
